package org.jsola.contract.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.jsola.core.dto.BaseDTO;

import java.util.List;

/**
 * @author zhenghua
 */
@EqualsAndHashCode(callSuper = true)
@ApiModel(description = "【下发合同模版到公司】的参数")
@Data
public class IssuedCategoryAddDTO extends BaseDTO {

    private static final long serialVersionUID = -1894524710361870658L;

    @ApiModelProperty(notes = "业务信息(目前指公司信息)")
    private List<Subject> subjectList;

    @ApiModelProperty(notes = "合同类型列表")
    private List<Category> categoryList;

    @Data
    public static class Category {

        @ApiModelProperty(notes = "合同分组名称")
        private String contractGroupName;

        @ApiModelProperty(notes = "合同类型Id")
        private List<Long> categoryIds;

    }

    @Data
    public static class Subject {

        @ApiModelProperty(notes = "业务id(目前指公司id)")
        private String subjectId;

        @ApiModelProperty(notes = "业务名称(目前指公司名称)")
        private String subjectName;

    }

    @ApiModelProperty(notes = "是否同步下发印章")
    private Boolean isSeal;

}
